home *** CD-ROM | disk | FTP | other *** search
- Path: spacenns.space.honeywell.com!usenet
- From: bjheyboer@space.honeywell.com (Brian Heyboer)
- Newsgroups: comp.sys.cbm
- Subject: Re: Want to read/record temp with c64
- Date: 11 Feb 1996 14:28:05 GMT
- Organization: Honeywell Space Systems
- Distribution: world
- Message-ID: <4fkudl$dfm@spacenns.space.honeywell.com>
- References: <4e75jl$je4@news.csus.edu> <4ff413$jeb@onramp.arc.nasa.gov>
- NNTP-Posting-Host: bjheyboer.space.honeywell.com
-
- In article <4ff413$jeb@onramp.arc.nasa.gov> lwilliam@pioneer.arc.nasa.gov (Tom)
- writes:
-
- >I used a temperature sensor from an old electronic thermometer - really a
- >thermal resistor - and attached it to the joystick port, one side to +5v, the
- >other to a paddle input. A memory location would hold the resultant value,
- >0-255. Adding a couple variable resistors, one in series, one in parallel,
- >would allow hardware adjustment of the sensitivity and range.
-
- A couple more things here: The repeatability of the C-64 paddle input is
- pretty good, though I would take a few samples and average them to remove any
- jitter. From one C-64 to the next, however, repeatability is poor. If there
- is any need to use this with multiple computers, you will need to do some
- adjusting if you want accurate results.
-
- >Two software appraoches are possible: table lookup and algebraic calculation.
-
- A second-order least-squares fit should be plenty good enough, and you can
- calculate well enough from just a few data points. Hmmm...I have some
- least-squares approximation software in BASIC around here SOMEWHERE (up too
- fifth order, if memory serves), but its been years since I used it. Now what
- did I do with it?
-
-